package com.gm.wholesale.module.order.orderStatus;

public enum OrderChangeType {

    NOT_CHANGE(0, "没有变化"),
    UPDATE(2, "修改"),
    ADD(1, "增加"),
    DELETE(3, "删除");
    private String message;
    private int type;
    OrderChangeType(int type, String desc) {
        this.type = type;
        this.message = desc;
    }
    public static OrderChangeType getType(int type){
        for (OrderChangeType orderChangeType:OrderChangeType.values()){
            if (orderChangeType.type==type){
                return orderChangeType;
            }
        }
        return NOT_CHANGE;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
